
<template>
  <div class="tb-header-bar">
    <el-button type="success" @click="create" icon="wp wp-icon-save">{{createText}}</el-button>
  </div>
</template>
<script>
export default {
  props: {createBtnText: String},
  data () {
    return {
      createText: this.createBtnText
    }
  },
  methods: {
    create () {
      this.$emit('create', this.createText)
    }
    // getSelection () {
    //   const rows = this.$parent.$refs.customerTable.selection
    //   if (rows && rows.length > 0) {
    //     rows.forEach(row => {
    //       console.log(row.customerName)
    //     })
    //   } else {
    //     this.$msgBox.error('请选择客户')
    //   }
    // }
  }
}
</script>
<style lang="scss" scoped>
</style>
